package lab02.Text25;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/11/14.
 */
public class Test {
    public static void main(String[] args) {
        int c=0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数：");
       int a = scanner.nextInt();
        System.out.println("请输入第二个数：");
        int b = scanner.nextInt();
       try{
           c=a/b;
           System.out.println(a+"/"+b+"="+c);
       }
       catch (ArithmeticException e){
           System.out.println("除数为0！！！！");
       }
    }
}
